package com.cpedu.mapper;
import java.util.Collection;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.cpedu.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
* @author admin
* @description 针对表【db_user】的数据库操作Mapper
* @createDate 2025-08-14 20:29:02
* @Entity com.cpedu.pojo.User
*/
@Repository
public interface UserMapper extends BaseMapper<User> {
        int insertSelective(User user);

        int delByUid(@Param("uid") Long uid);

        List<User> selectAge();

        int updateUid(@Param("uid") Long uid);

        List<User> selectAllByAgeInAndSex(@Param("ageList") Collection<Integer> ageList, @Param("sex") Integer sex);

        List<User> selectAgeAndSexByAgeBetween(@Param("beginAge") Integer beginAge, @Param("endAge") Integer endAge);
}




